<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位</title>
    <link rel="stylesheet" href="css-12-position.css">
</head>
<body>
    <h1>css布局--定位</h1>
    <div class="box">第一个盒子</div>
    <div class="box pos_static">静态定位</div>
    <div class="box pos_relative">相对定位</div>
    <div class="box">第二个盒子</div>
    <div class="box pos_absolute">绝对定位</div>
    <div class="box">第三个盒子</div>

    <div class="box">
        <p>父容器用于绝对定位</p>
        <div class="box">绝对定位相对于父容器</div>
    </div>

    <div class="box">固定定位</div>
    <div class="box">黏贴定位</div>
    <div class="box">最后一个盒子</div>
</body>
</html>